import { IFeidaoAiBrowserComponent } from '@feidao/web/interfaces';
import get from '@feidao/web/atom/browser/global/get';
import nodejs from '@feidao/web/atom/browser/msg/nodejs';
import fire_component_msg from '@feidao/web/atom/browser/fsm/fire-component-msg';

export default async function (fd: IFeidaoAiBrowserComponent, ...args: any[]) {
	console.log("zj-h5manage-001 确定删除");
	const del_data = get("del_data");
	const res = await nodejs("xmedia", "moxuan_del_h5_playback_content", { data: del_data });
	if (res == "Success") {
		// alert("删除成功！");
		fire_component_msg('zj-common-001', 'ec-001', 'success', '删除成功');
		fd.fire('ME20180109000005');
	} else {
		fire_component_msg('zj-common-001', 'ec-001', 'fail', '删除失败！');
	}
}
